home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 30 / PC Gamer IT CD 30 1-2.iso / MOTS / GAMEDATA / EPISODE / JKM_PCG.GOO / cog_s1l2_secretfloor.cog < prev    next >
Encoding:
Text File  |  1998-02-25  |  1.0 KB  |  58 lines

  1. # Jedi Knight Missions Cog
  2. #
  3. # S1L2_secretfloor.cog
  4. #
  5. # [TL]
  6. #
  7. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  8. #============================================================================
  9.  
  10. symbols
  11. message activated
  12. message startup
  13.  
  14. surface floor            linkid=1    
  15.                         
  16. sound    kyle
  17. sound    beep                
  18.  
  19. thing    consol            linkid=2                    
  20. thing   door                    linkid=3
  21. thing   ghost
  22.  
  23.  
  24. int     done=0                  local
  25.  
  26. template        mine
  27.  
  28. end
  29.  
  30. #============================================================================
  31.  
  32. code
  33. startup:
  34.     SetFaceGeoMode(floor, 4);
  35.         return;
  36.  
  37. activated:
  38.     if (done) return;
  39.     
  40.         
  41.         if (GetSenderId() == 2) 
  42.         {
  43.              done=1;
  44.                         PlaySoundThing(beep, consol, 1, -1, -1, 0);        
  45.  
  46.                         SetFaceGeoMode(floor, 0);          
  47.                         MoveToFrame(door, 1, 4);       
  48.  
  49.             sleep(1.0);
  50.             PlaySoundLocal(kyle, 3, 0, 0);
  51.                 CreateThing(mine, ghost);
  52.                 }
  53.         return;
  54.  
  55. end
  56.  
  57.